home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5021 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: ar.ar.com.au!not-for-mail
  2. From: storm@ar.ar.com.au (Storm)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: 680X0 -> PPC translator?
  5. Date: 8 Mar 1996 11:06:51 +1100
  6. Organization: I need to put my ORGANIZATION here.
  7. Message-ID: <4hntmr$vbs@ar.ar.com.au>
  8. References: <19960306.4543C8.11FB8@an218.du.pipex.com> <DnwA2w.835@cix.compulink.co.uk>
  9. NNTP-Posting-Host: ar.ar.com.au
  10. X-Newsreader: TIN [UNIX 1.3 941216BETA PL0]
  11.  
  12. Jolyon Ralph (jralph@cix.compulink.co.uk) wrote:
  13.  
  14. : Data in code sections isn't going to be as tough to sort out as code in 
  15. : data sections. It depends on the methodology of your static translator. 
  16. : Something that works through the hunk byte for byte will get fooled by 
  17. : data. Something that understands 680x0 code and AmigaDOS executable file 
  18. : formats and runs through the code in execution order (recursively) should 
  19. : be able to ignore data in code hunks (not that I'd like to write it, of 
  20. : course! I'm just saying that theoretically it can be done).
  21.  
  22. I can't remember the name of it, but I got an 'intelligent' disassembler
  23. from Aminet which traces through program flow to determine what bits to
  24. disassemble as code, and what bits to spit out as dc.b's of data.
  25.  
  26. Only problem is, there are some code constructs which it's not going to
  27. be able to trace through properly (eg code which is only ever jumped to
  28. via a jump table) and it will get wrong. Not such a problem with a 
  29. disassembler, seeing the mistakes are few and the output is being looked
  30. at by a programmer anyway - but for a static translator, could be big
  31. problems.
  32.  
  33. Still, there's no reason why someone couldn't write such a thing. You
  34. could translate programs, test them, and if they work - great! If they
  35. don't, oh well, use the 68000 version under emulation.
  36.  
  37. --                  ______________________________
  38.                     \_/ "\/\/\__"\/ "\/ "\/\__"\_/ 
  39. Storm / Cydonia      / / / / / / / / / / / / ' /       Packing class
  40.                     / /\/>  / / / / / / / / / /__     & kicking arse!
  41.     (coder)         \__/ \_/\__/\__/\/\/\/\/\/ \/
  42.